
/**
 * @brief    Defines modal damping as a tabular function of natural frequency.
 *
 * @version  0.1
 * @author   wuxingchuang
 * @date     2024.11.23
 *          _
 *      ___| |__   ___ _ __   __ _  ___  _ __   __ _
 *     / __| '_ \ / _ \ '_ \ / _` |/ _ \| '_ \ / _` |
 *     \__ \ | | |  __/ | | | (_| | (_) | | | | (_| |
 *     |___/_| |_|\___|_| |_|\__, |\___/|_| |_|\__, |
 *                           |___/             |___/
 * @copyright (c) 2024 by 神工仿真, All Rights Reserved.
 */
#pragma once
#include "Utility/Algebra/Config.h"
#include "DataStructure/Common/Id.h"
#include "DataStructure/Common/Real.h"
#include "DataStructure/Common/SGObject.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN

struct DECLSPEC TABDMP1Data : public SGObject
{
    /**
     * @brief    线性插值函数 （超出范围取临近两个点做外推）
     * 
     * @param    omega 输入感兴趣的自变量值，返回插值后的值
     * @return   
     * @author   wjw
     * @date     2025.03.05
     */
    SG::Algebra::Real_t Interpolate (const SG::Algebra::Real_t& omega) const;
    struct DAMPData
    {
        SG::DataStructure::Common::Real m_F = 0.0;  ///<
        SG::DataStructure::Common::Real m_G = 0.0;  ///<
    };

    SG::DataStructure::Common::Id m_domainId = 0;   ///<

    std::vector<DAMPData> m_DAMPList;
};

///@{ @brief operator override
DECLSPEC bool operator== (const TABDMP1Data::DAMPData& val1, const TABDMP1Data::DAMPData& val2);

DECLSPEC bool operator== (const TABDMP1Data& val1, const TABDMP1Data& val2);
///}@
SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE
